package com.yxj.dries.lib.network.api;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApiResponse<T> {

    private Integer code;
    private String message;
    private T data;


//    public static <T> ApiResponse<T> success(T data) {
//        return new ApiResponse<T>(200, "请求成功", data);
//    }
//
//    public static <T> ApiResponse<T> loading(T data) {
//        return new ApiResponse<T>(200, "正在请求中", data);
//    }
//
//    public static <T> ApiResponse<T> error(String message, T data) {
//        return new ApiResponse<T>(500, message, data);
//    }

}
